
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <link rel="stylesheet" href="iconfont.css">
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                <i class="icon iconfont el-icon-zzl-chanzi"></i>
                    <div class="name">铲子</div>
                    <div class="fontclass">.el-icon-zzl-chanzi</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-zzl-dimian"></i>
                    <div class="name">地面</div>
                    <div class="fontclass">.el-icon-zzl-dimian</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-zzl-chanche"></i>
                    <div class="name">铲车</div>
                    <div class="fontclass">.el-icon-zzl-chanche</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-zzl-dengpao"></i>
                    <div class="name">灯泡</div>
                    <div class="fontclass">.el-icon-zzl-dengpao</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-zzl-diaoche"></i>
                    <div class="name">吊车 </div>
                    <div class="fontclass">.el-icon-zzl-diaoche</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-zzl-diaoche1"></i>
                    <div class="name">吊车</div>
                    <div class="fontclass">.el-icon-zzl-diaoche1</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-zzl-dianyabiao"></i>
                    <div class="name">电压表</div>
                    <div class="fontclass">.el-icon-zzl-dianyabiao</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-zzl-hunningtujiaobanji"></i>
                    <div class="name">混凝土搅拌机</div>
                    <div class="fontclass">.el-icon-zzl-hunningtujiaobanji</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-zzl-hunningtujiaobanji1"></i>
                    <div class="name">混凝土搅拌机 </div>
                    <div class="fontclass">.el-icon-zzl-hunningtujiaobanji1</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-zzl-jiushengyi"></i>
                    <div class="name">救生衣</div>
                    <div class="fontclass">.el-icon-zzl-jiushengyi</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-zzl-shumu"></i>
                    <div class="name">树木</div>
                    <div class="fontclass">.el-icon-zzl-shumu</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-zzl-xueshan"></i>
                    <div class="name">雪山</div>
                    <div class="fontclass">.el-icon-zzl-xueshan</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-zzl-bieshu"></i>
                    <div class="name">别墅</div>
                    <div class="fontclass">.el-icon-zzl-bieshu</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-zzl-jiudian"></i>
                    <div class="name">酒店</div>
                    <div class="fontclass">.el-icon-zzl-jiudian</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-zzl-pailide"></i>
                    <div class="name">拍立得</div>
                    <div class="fontclass">.el-icon-zzl-pailide</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-zzl-hongjiu"></i>
                    <div class="name">红酒</div>
                    <div class="fontclass">.el-icon-zzl-hongjiu</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-zzl-naicha"></i>
                    <div class="name">奶茶</div>
                    <div class="fontclass">.el-icon-zzl-naicha</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-zzl-jiweijiu"></i>
                    <div class="name">鸡尾酒</div>
                    <div class="fontclass">.el-icon-zzl-jiweijiu</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-zzl-bingqilin"></i>
                    <div class="name">冰淇淋</div>
                    <div class="fontclass">.el-icon-zzl-bingqilin</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-zzl-paozao"></i>
                    <div class="name">泡澡</div>
                    <div class="fontclass">.el-icon-zzl-paozao</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-zzl-yeshu"></i>
                    <div class="name">椰树</div>
                    <div class="fontclass">.el-icon-zzl-yeshu</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-zzl-riguangyu"></i>
                    <div class="name">日光浴</div>
                    <div class="fontclass">.el-icon-zzl-riguangyu</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-zzl-chonglang"></i>
                    <div class="name"> 冲浪</div>
                    <div class="fontclass">.el-icon-zzl-chonglang</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-zzl-dengta"></i>
                    <div class="name">灯塔</div>
                    <div class="fontclass">.el-icon-zzl-dengta</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-zzl-zhishipai"></i>
                    <div class="name">指示牌</div>
                    <div class="fontclass">.el-icon-zzl-zhishipai</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-zzl-hanglvxiang"></i>
                    <div class="name">行旅箱</div>
                    <div class="fontclass">.el-icon-zzl-hanglvxiang</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-zzl-dongche"></i>
                    <div class="name">动车</div>
                    <div class="fontclass">.el-icon-zzl-dongche</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-zzl-feiji"></i>
                    <div class="name">飞机</div>
                    <div class="fontclass">.el-icon-zzl-feiji</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-zzl-yueyeche"></i>
                    <div class="name">越野车</div>
                    <div class="fontclass">.el-icon-zzl-yueyeche</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-zzl-qianbao"></i>
                    <div class="name">钱包</div>
                    <div class="fontclass">.el-icon-zzl-qianbao</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-zzl-ditu"></i>
                    <div class="name">地图</div>
                    <div class="fontclass">.el-icon-zzl-ditu</div>
                </li>
            
                <li>
                <i class="icon iconfont el-icon-zzl-changyi"></i>
                    <div class="name">长椅</div>
                    <div class="fontclass">.el-icon-zzl-changyi</div>
                </li>
            
        </ul>

        <h2 id="font-class-">font-class引用</h2>
        <hr>

        <p>font-class是unicode使用方式的一种变种，主要是解决unicode书写不直观，语意不明确的问题。</p>
        <p>与unicode使用方式相比，具有如下特点：</p>
        <ul>
        <li>兼容性良好，支持ie8+，及所有现代浏览器。</li>
        <li>相比于unicode语意明确，书写更直观。可以很容易分辨这个icon是什么。</li>
        <li>因为使用class来定义图标，所以当要替换图标时，只需要修改class里面的unicode引用。</li>
        <li>不过因为本质上还是使用的字体，所以多色图标还是不支持的。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-fontclass-">第一步：引入项目下面生成的fontclass代码：</h3>


        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;link rel="stylesheet" type="text/css" href="./iconfont.css"&gt;</span></code></pre>
        <h3 id="-">第二步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-css hljs">&lt;<span class="hljs-selector-tag">i</span> <span class="hljs-selector-tag">class</span>="<span class="hljs-selector-tag">iconfont</span> <span class="hljs-selector-tag">el-icon-zzl-xxx</span>"&gt;&lt;/<span class="hljs-selector-tag">i</span>&gt;</code></pre>
        <blockquote>
        <p>"iconfont"是你项目下的font-family。可以通过编辑项目查看，默认是"iconfont"。</p>
        </blockquote>
    </div>
</body>
</html>
